# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=debian-archive-keyring
pkgver=2021.1.1
pkgrel=0
pkgdesc="GnuPG archive keys of the Debian archive"
url="https://packages.debian.org/sid/debian-archive-keyring"
arch="noarch"
license="GPL-2.0-or-later"
depends="gnupg"
options="!check" # upstream doesn't have a test suite.
subpackages="$pkgname-doc"
source="https://deb.debian.org/debian/pool/main/d/debian-archive-keyring/debian-archive-keyring_${pkgver}_all.deb"

unpack() {
	cd "$srcdir"
	for i in $source; do
		case $i in
			*.deb) ar x ${i##*/} ;;
		esac
	done
}

build() {
	return 0
}

package() {
	mkdir -p "$pkgdir"
	unxz -c "$srcdir"/data.tar.xz | tar -x -C "$pkgdir"/
}

sha512sums="64575ab9f23b69ca98f13d535e18574b6d7805add0d56238e760b9e639c9990f3f3d865460fdaf86480c3905a3f3d7637b56e2998ae60f2f05e2d08e148ddcc7  debian-archive-keyring_2021.1.1_all.deb"
